//using System;
//using System.Collections.Generic;
//using System.ComponentModel.DataAnnotations;
//using System.ComponentModel.DataAnnotations.Schema;
//using System.Linq;
//using System.Resources;
//using System.Runtime.Serialization;
//using System.Text;
//using System.Threading.Tasks;

//namespace KPIS.GERP.Models.HRM
//{
//    [Table("hrm_ps_absence_rules")]
//    public class PsAbsenceRule
//    {
//        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
//        [DataMember, Column("rule_seq"), Display(Name = "RuleId", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public int RuleId { get; set; }

//        [ForeignKey("EmpType")]
//        [DataMember,Column("emp_type_seq"), Display(Name = "EmpTypeId", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public int EmpTypeId { get; set; }

//        [ForeignKey("AbsenceType")]
//        [DataMember, Column("absence_type_seq"),Display(Name = "AbsenceTypeId", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public int AbsenceTypeId { get; set; }

//        [DataMember,Column("quota_day"), Display(Name = "QuotaDay", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<decimal> QuotaDay { get; set; }

//        [DataMember, Column("quota_salary"), Display(Name = "QuotaSalary", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<decimal> QuotaSalary { get; set; }

//        [DataMember, Column("quota_count"), Display(Name = "QuotaCount", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<decimal> QuotaCount { get; set; }

//        [DataMember, Column("quota_day_count"), Display(Name = "QuotaDayCount", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<decimal> QuotaDayCount { get; set; }

//        [DataMember, Column("remarks"), Display(Name = "Remarks", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public string Remarks { get; set; }

//        [DataMember, Column("record_status"), Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public string RecordStatus { get; set; }

//        [DataMember, Column("created_by"), Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<int> CreatedBy { get; set; }

//        [DataMember, Column("created_when"), Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<System.DateTime> CreatedWhen { get; set; }

//        [DataMember, Column("updated_by"), Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<int> UpdatedBy { get; set; }

//        [DataMember, Column("updated_when"), Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsAbsenceRulesResource))]
//        public Nullable<System.DateTime> UpdatedWhen { get; set; }

//        public virtual MasEmployeeType EmpType { get; set; }

//        public virtual PsAbsenceType AbsenceType { get; set; }

//    }
//}